<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-title">
                <h5>单服充值情况</h5>
            </div>
            <div class="ibox-content">
                <form class="form-horizontal " action="<?php echo e(route('stat.server')); ?>" method="post"
                      enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>

                    <table class="table-striped table-bordered table-hover table-condensed">
                        <tr class="b-group">
                            <td class="b-child" colspan="2">
                                <table class="table-striped table-bordered table-hover table-condensed"
                                       style="margin: 0px;">
                                    <tr class="b-group">
                                        <td>
                                            <?php echo $__env->make('widget.between_datetime', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                        <td>
                                            <?php echo $__env->make('widget.query_and_refresh', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                        <td>
                                            <?php echo $__env->make('widget.dataType',['dataType'=>\App\Models\Enum\DataType::YESTERDAY], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr class="b-group">
                            <th width="10%">
                                <label>全选/不选&nbsp;&nbsp;
                                    <input type="checkbox" checked="checked" value=""
                                           onclick="checkAll(this)"></label>
                            </th>
                            <td class="b-child">
                                <div style="max-height:6.5rem;overflow-y:scroll;">
                                    <?php echo $__env->make('widget.channel', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                </div>
                            </td>
                        </tr>
                        <tr class="b-group">
                            <th width="10%">
                                <label>全选/不选&nbsp;&nbsp;
                                    <input type="checkbox" checked="checked" value="" onclick="checkAll(this)"></label>
                            </th>
                            <td class="b-child">
                                <div style="max-height:10rem;overflow-y:scroll;">
                                    <?php echo $__env->make('widget.server', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <input type="hidden" name="page_size" value="<?php echo e($reqPageSize); ?>"/>
                </form>
                <table class="table table-striped table-bordered table-hover m-t-md tblData">
                    <thead>
                    <tr>
                        <th class="text-center">代理</th>
                        <th class="text-center">今日总金额</th>
                        <th class="text-center">今日充值人数</th>
                        <th class="text-center">昨日充值人数</th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="今日总金额 / 活跃用户">今日ARPU</a></th>
                        <th class="text-center">昨日ARPU</th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="今日总金额 / 今日充值人数">今日ARPPU</a></th>
                        <th class="text-center">昨日ARPPU</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $__currentLoopData = $serverStat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($item['channel_name']); ?>-<?php echo e($item['server_name']); ?></td>
                            <td><?php echo e($item['amounts']); ?></td>
                            <td><?php echo e($item['pay_users']); ?></td>
                            <td><?php echo e($item['yesterday_pay_users']); ?></td>
                            <td><?php echo e($item['arpu']); ?></td>
                            <td><?php echo e($item['yesterday_arpu']); ?></td>
                            <td><?php echo e($item['arppu']); ?></td>
                            <td><?php echo e($item['yesterday_arppu']); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
                <div class="pull-left pagination m-t-no">
                    <?php echo $__env->make('widget.page',['reqPageSize'=>$reqPageSize], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                </div>
                <div class="pull-right pagination m-t-no">
                    <div class="text-center">
                        <?php
                        if (count($serverStat) > 0) {
                            echo $serverStat->appends(
                                [
                                    'start_time' => $reqStartTime,
                                    'channel_id' => $str_arr_channels_id,
                                    'unique_id' => $str_arr_unique_id,
                                    'page_size' => app('request')->input('page_size'),
                                    'data_type' => app('request')->input('data_type'),
                                ])->links();
                        }
                        ?>
                    </div>
                    <div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
    <script>
    </script>
    <link href="<?php echo e(loadEdition('/admin/css/plugins/datapicker/bootstrap-datepicker.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/datapicker/bootstrap-datepicker.js')); ?>"></script>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/datapicker/bootstrap-datepicker.zh-CN.js')); ?>"></script>
    <script src="<?php echo e(loadEdition('/js/global.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>